package com.zelin.seckill;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.test.context.junit4.SpringRunner;

import java.io.IOException;
import java.time.LocalDateTime;
import java.util.TimeZone;

/**
 * ------------------------------
 * 功能：
 * 作者：WF
 * 微信：hbxfwf13590332912
 * 创建时间：2021/8/18-16:04
 * ------------------------------
 */
//@Component
//@EnableScheduling
public class TestSpingTask {
    @Scheduled(cron = "* * * * * ?")
    public void test01() {
        System.out.println("当前时间是：" + LocalDateTime.now());
    }
}
